Integrand size = 38, antiderivative size = 45 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{2 B (b c-a d) n} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {2573, 2561, 2338} \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^2}{2 B n (b c-a d)} \]
[In]
[Out]
Rule 2338
Rule 2561
Rule 2573
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(a+b x) (c+d x)} \, dx,e \left (\frac {a+b x}{c+d x}\right )^n,e (a+b x)^n (c+d x)^{-n}\right ) \\ & = \text {Subst}\left (\frac {\text {Subst}\left (\int \frac {A+B \log \left (e x^n\right )}{x} \, dx,x,\frac {a+b x}{c+d x}\right )}{b c-a d},e \left (\frac {a+b x}{c+d x}\right )^n,e (a+b x)^n (c+d x)^{-n}\right ) \\ & = \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{2 B (b c-a d) n} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.96 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{2 (b B c n-a B d n)} \]
[In]
[Out]
Time = 3.84 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.38
method | result | size |
derivativedivides | \(-\frac {\frac {B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}}{2}+\ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) A}{n \left (a d -c b \right )}\) | \(62\) |
default | \(-\frac {\frac {B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}}{2}+\ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) A}{n \left (a d -c b \right )}\) | \(62\) |
parts | \(\frac {A \ln \left (d x +c \right )}{a d -c b}-\frac {\ln \left (b x +a \right ) A}{a d -c b}-\frac {B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}}{2 n \left (a d -c b \right )}\) | \(76\) |
parallelrisch | \(-\frac {B \,a^{2} c^{2} \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}+2 A \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) a^{2} c^{2}}{2 c^{2} a^{2} n \left (a d -c b \right )}\) | \(80\) |
risch | \(\text {Expression too large to display}\) | \(1152\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.60 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\frac {B n \log \left (b x + a\right )^{2} + B n \log \left (d x + c\right )^{2} + 2 \, {\left (B \log \left (e\right ) + A\right )} \log \left (b x + a\right ) - 2 \, {\left (B n \log \left (b x + a\right ) + B \log \left (e\right ) + A\right )} \log \left (d x + c\right )}{2 \, {\left (b c - a d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 151 vs. \(2 (43) = 86\).
Time = 0.21 (sec) , antiderivative size = 151, normalized size of antiderivative = 3.36 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=B {\left (\frac {\log \left (b x + a\right )}{b c - a d} - \frac {\log \left (d x + c\right )}{b c - a d}\right )} \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A {\left (\frac {\log \left (b x + a\right )}{b c - a d} - \frac {\log \left (d x + c\right )}{b c - a d}\right )} - \frac {{\left (e n \log \left (b x + a\right )^{2} - 2 \, e n \log \left (b x + a\right ) \log \left (d x + c\right ) + e n \log \left (d x + c\right )^{2}\right )} B}{2 \, {\left (b c - a d\right )} e} \]
[In]
[Out]
\[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=\int { \frac {B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A}{{\left (b x + a\right )} {\left (d x + c\right )}} \,d x } \]
[In]
[Out]
Time = 1.36 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.58 \[ \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx=-\frac {B\,{\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )}^2-A\,n\,\mathrm {atan}\left (\frac {b\,c\,2{}\mathrm {i}+b\,d\,x\,2{}\mathrm {i}}{a\,d-b\,c}+1{}\mathrm {i}\right )\,4{}\mathrm {i}}{2\,n\,\left (a\,d-b\,c\right )} \]
[In]
[Out]